package com.ddc.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author lichacha
 * @since 2022-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="LoanRecord对象", description="")
public class LoanRecord implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "lrs_is", type = IdType.AUTO)
    private Integer lrsIs;

    private Integer lrsUserId;

    @ApiModelProperty(value = "身份证号码")
    @TableField("lrs_user_IDcard")
    private String lrsUserIdcard;

    @ApiModelProperty(value = "贷款金额")
    private Integer lrsLoanAmount;

    @ApiModelProperty(value = "小额贷  信贷")
    private String lrsLoanProject;

    @ApiModelProperty(value = "贷款用途id    用于计息，算法")
    private Integer lrsLoanPurId;

    @ApiModelProperty(value = "贷款方式id     用于计息，算法")
    private Integer lrsLoanWayId;

    @ApiModelProperty(value = "利率id  根据利率id查询短款时长对应的利率")
    private Integer lrtId;

    @ApiModelProperty(value = "贷款期数  3、6、12")
    private Integer lrsLoanLen;

    @ApiModelProperty(value = "贷款年利率")
    private Double lrsLoanRate;

    @ApiModelProperty(value = "贷款总利息")
    private Double lrsLoanInter;

    @ApiModelProperty(value = "贷款时间")
    private LocalDateTime lrsLoanTime;

    @ApiModelProperty(value = "贷款状态   0申请 1 审核中  2正在打款  3  打款的打款状态为1 才能将状态改为3")
    private Integer lrsLoanState;

    @ApiModelProperty(value = "收款账号  用户的账户")
    private String lrsLoanAccount;

    @ApiModelProperty(value = "收款银行")
    private String lrsLoanBank;

    @ApiModelProperty(value = "渠道商id")
    private Integer lcpId;

    @ApiModelProperty(value = "渠道商是否通过")
    private Integer cplCheckState;

    @ApiModelProperty(value = "渠道商名称")
    private String lrsLoanChannel;

    @ApiModelProperty(value = "贷款偿还状态  0未完成    1 完成")
    private Integer lrsRepayState;

    @ApiModelProperty(value = "记录新增时间")
    private LocalDateTime rawAddTime;

    @ApiModelProperty(value = "记录更新时间")
    private LocalDateTime rawUpdateTime;


}
